<?php
  
  session_start();
  define("DEFAULT_URL","Index/Index");  //默认路由
  define("DEFAULT_MOD","Index");        //默认模块
  define("DEFAULT_FUN","Index");        //默认模块模块执行函数
  include_once("config.php");
  include_once("common/libs/Smarty.class.php");
  include_once("common/function/function.php");
  include_once("common/class/db.php");
  include_once("common/class/file.php");
  include_once("common/class/Core.php");
  $modArray = null;
  $valArray = null;
  if($_GET['m']){
  	 $modArray = dealGetM($_GET['m']);
	 unset($_GET['m']);
	 $valArray = $_GET;
  }else{
  	$modArray = dealGetM(DEFAULT_URL);
  }
  
  route($modArray,$valArray);

?>